﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DesignPatternSample.MediatorPattern
{
    public class ColleagueA
        :AbstractColleague
    {
        public ColleagueA(AbstractMediator mediator)
            :base(mediator)
        {}
        public void SendMessage(string message)
        {
            _mediator.SendMessage(message,this);
        }
        public override void PrintMessage(string message)
        {
            Console.WriteLine($"A收到消息:{message}");
        }
    }
}
